-module(cluster).
-export([start/0, stop/0]).

start()->
	code_add_path(),
    case application:start(cluster_app) of
        ok -> ok;
        {error, {already_started, cluster_app}} -> ok
    end.    

stop() ->
    application:stop(cluster_app),
    erlang:halt().

code_add_path() ->
    Paths = ["./ebin", "./deps/*/ebin"],
    lists:foreach(fun(PW) -> code:add_pathsa(filelib:wildcard(PW)) end, Paths).    